package com.tamtamy.jtta.data.xml;

import org.w3c.dom.Document;

import com.tamtamy.jtta.data.Metadata;
import com.tamtamy.jtta.utility.XMLUtility;

public class XMLMetadata extends Metadata {
	
	public XMLMetadata(Document xmlDocument) {
		this.pageTitle = XMLUtility.getString(xmlDocument, "title");
		this.pageDescription = XMLUtility.getString(xmlDocument, "description");
		this.tags = XMLUtility.getString(xmlDocument, "tags").split(",");			
	}

}
